package top.xin1901.j2ecd.dao;

import org.springframework.stereotype.Repository;
import top.xin1901.j2ecd.beans.Type;

import java.util.List;

/**
 * @author HeYunjia
 */

@Repository
public interface TypeDao {
    int insert(Type type);

    int deleteByPrimaryKey(Long typeId);

    int updateByPrimaryKey(Type type);

    List<Type> selectAll();

    Type selectByPrimaryKey(Long typeId);

    Type selectTest(Type type1, Type type2);

    // mybatis 不支持重载
//    List<Type> selectTest();
}
